package com.exchange.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.exchange.entity.pojo.CardRoll;
import com.exchange.entity.vo.CardDisplayVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.List;

/**
* @author Administrator
* @description 针对表【card_roll】的数据库操作Mapper
* @createDate 2024-04-25 20:02:10
* @Entity com.exchange.entity.pojo.CardRoll
*/
public interface CardRollMapper extends BaseMapper<CardRoll> {


    void cardRoll(@Param("id") Long id,@Param("cardName") String cardName,@Param("countPrice") BigDecimal countPrice,@Param("uid") Long uid);


    List<CardDisplayVo> MyCardListByType(@Param("id") Long id,@Param("type") Integer type);

    List<CardDisplayVo> findAll(BigInteger uid);

    @Update("update card_roll set remark=2 where id=#{id}")
    void updatere(Long id);

    @Update("update card_roll set remark=2 where id=#{cd}")
    void updaterec(Long cid);
}




